﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace HCD.Entities
{
    /// <summary>
    /// 患者诊断记录
    /// </summary>
    public class PatsDiagnosisV : Entity<string>
    {
        [Column("ID")]
        public override string Id { get => base.Id; set => base.Id = value; }
        /// <summary>
        /// 病人标识
        /// </summary>
        [Column("PATIENT_ID")]
        public string PatientId { get; set; }

        /// <summary>
        /// 就诊标识
        /// </summary>
        [Column("VISIT_ID")]
        public string VisitId { get; set; }

        /// <summary>
        /// 诊断类型   1主要诊断 2其他诊断
        /// </summary>
        [Column("DIAGNOSIS_TYPE")]
        public string DiagnosisType { get; set; }

        /// <summary>
        /// 诊断序号
        /// </summary>
        [Column("DIAGNOSIS_NO")]
        public int? DiagnosisNo { get; set; }

        /// <summary>
        /// 诊断子序号
        /// </summary>
        [Column("DIAGNOSIS_SUB_NO")]
        public int? DiagnosisSubNo { get; set; }

        /// <summary>
        /// 诊断代码
        /// </summary>
        [Column("DIAGNOSIS_CODE")]
        public string DiagnosisCode { get; set; }

        /// <summary>
        /// 诊断名称
        /// </summary>
        [Column("DIAGNOSIS_NAME")]
        public string DiagnosisName { get; set; }

        /// <summary>
        /// 诊断日期
        /// </summary>
        [Column("DIAGNOSIS_DATE")]
        public DateTime? DiagnosisDate { get; set; }
    }
}
